package com.ml.mall.entity.variant;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author kyyang
 * Created 2021-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_product_variant_sku")
@ApiModel(value = "SysProductVariantSku对象", description = "")
public class SysProductVariantSku implements Serializable {


    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除", example = "1")
    @TableField(value = "is_delete", fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer isDelete;

    /**
     * 变体ID
     */
    @ApiModelProperty(value = "变体ID", example = "1")
    @TableField("variant_id")
    private Long variantId;

    /**
     * SKU描述
     */
    @ApiModelProperty(value = "SKU描述")
    @TableField("sku_describe")
    private String skuDescribe;

    /**
     * 子商品规格
     */
    @ApiModelProperty(value = "子商品规格")
    @TableField("variant_model")
    private String variantModel;

    /**
     * 最小起量
     */
    @ApiModelProperty(value = "最小起量", example = "1")
    @TableField("moq")
    private Integer moq;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    @TableField("uom")
    private String uom;

    /**
     * 库存
     */
    @ApiModelProperty(value = "库存", example = "1")
    @TableField("stock")
    private Integer stock;

    /**
     * 最低库存提示
     */
    @ApiModelProperty(value = "最低库存提示", example = "1")
    @TableField("low_stock")
    private Integer lowStock;

    /**
     * 重
     */
    @ApiModelProperty(value = "重")
    @TableField("weight")
    private BigDecimal weight;

    /**
     * 长
     */
    @ApiModelProperty(value = "长")
    @TableField("length")
    private BigDecimal length;

    /**
     * 高
     */
    @ApiModelProperty(value = "高")
    @TableField("height")
    private BigDecimal height;

    /**
     * 宽
     */
    @ApiModelProperty(value = "宽")
    @TableField("width")
    private BigDecimal width;

    /**
     * 送达天数：如：3
     */
    @ApiModelProperty(value = "送达天数：如：3")
    @TableField("delivery_day")
    private Integer deliveryDay;


}
